package cn.hbu.zlfw.research.service;

import cn.hbu.zlfw.common.base.service.BaseService;
import cn.hbu.zlfw.common.util.PageModel;
import cn.hbu.zlfw.research.entity.Researcher;
/**
 * 
 * @ClassName: ResearcherService 
 * @Description: 科研人员service接口
 * @author 王鹏伟<1223443289@qq.com>
 * @date 2017年10月23日 下午5:58:25  
 * @version V1.0
 */
public interface ResearcherService extends BaseService<Researcher, String>{
	/**
	 * 
	 * @Title: findResearcher 
	 * @Description: 根据手机号和密码查询科研人员
	 * @param userName
	 * @param password
	 * @return Researcher   
	 * @throws 
	 */
	Researcher findResearcherTologin(String phoneNumber, String password);
	/**
	 * 
	 * @Title: findResearcherByPhone 
	 * @Description: 根据手机号查询科研人员
	 * @param phoneNumber
	 * @return Researcher   
	 * @throws
	 */
	Researcher findResearcherByPhone(String phoneNumber);
	/**
	 * 
	 * @Title: findResearcherByPhone 
	 * @Description: 根据手机号查询各种人员
	 * @param phoneNumber
	 * @return Researcher   
	 * @throws
	 */
	Object findByPhone(String phoneNumber,Object obj);
	/**
	 * 
	 * @Title: listResearcherByParamsToRoot 
	 * @Description: 总管理员查询所有科研人员信息
	 * @return PageModel<Researcher> 
	 * @throws
	 */
	PageModel<Researcher> listResearcherByParamsToRoot(PageModel<Researcher> pageModel, String userName,
			Integer schoolType);
	/**
	 * 
	 * @Title: getResearcherToUpdate 
	 * @Description: 检验手机号是否已经被其他人注册
	 * @return Researcher 
	 * @throws
	 */
	Researcher getResearcherToUpdate(String phoneNumber, String id);

}
